﻿<UserControl x:Class="PrismFactory.SoftwareFactory.Views.GenerateViewClasses.GenerateViewClassesPageView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="327" d:DesignWidth="466">
    <UserControl.Resources>
        <Style x:Key="textBoxInError" TargetType="{x:Type TextBox}">
            <Style.Triggers>
                <Trigger Property="Validation.HasError" Value="true">
                    <Setter Property="ToolTip" Value="{Binding (Validation.Errors)[0].ErrorContent, RelativeSource={x:Static RelativeSource.Self}}" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </UserControl.Resources>
    <Canvas>
        <Label Canvas.Left="12" Canvas.Top="12" Content="View name:" Width="140" />
        <TextBox Canvas.Left="12" Canvas.Top="44" Height="25" IsReadOnly="False" Text="{Binding ViewName, Mode=TwoWay, ValidatesOnDataErrors=True}" Style="{StaticResource textBoxInError}" TextWrapping="Wrap" Width="327" />
        <Label Canvas.Left="12" Canvas.Top="75" Content="ViewModel name:" Width="140" />
        <TextBox Canvas.Left="12" Canvas.Top="107" Height="25" IsReadOnly="True" Style="{StaticResource textBoxInError}" Text="{Binding ViewModelName}" TextWrapping="Wrap" Width="327" />
        <Label Canvas.Left="12" Canvas.Top="138" Content="ViewModel interface name:" Width="169" />
        <TextBox Canvas.Left="12" Canvas.Top="170" Height="25" IsReadOnly="True" Style="{StaticResource textBoxInError}" Text="{Binding ViewModelInterfaceName}" TextWrapping="Wrap" Width="327" />
        <Label Canvas.Left="12" Canvas.Top="201" Content="ViewModel test class name:" Width="169" />
        <TextBox Canvas.Left="12" Canvas.Top="233" Height="25" IsReadOnly="True" Style="{StaticResource textBoxInError}" Text="{Binding ViewModelTestClassName}" TextWrapping="Wrap" Width="327" />
        <CheckBox Canvas.Left="12" Canvas.Top="264" Content="Generate code templates." Height="16" Name="checkBox1" IsChecked="{Binding GenerateCodeTemplates}" />
    </Canvas>
</UserControl>
